package stream_demo;

import java.util.Arrays;

public class demo3 {
    public static void main(String[] args) {
        //数组
        //基本数据类型
        int[] arr={1,2,3,4,5,6};
        Arrays.stream(arr).forEach(s-> System.out.println(s));
        //引用数据类型
        String[] arr2={"aaa","bbb","ccc"};
        Arrays.stream(arr2).forEach(s-> System.out.println(s));



    }
}
